import json

import config


def read_json(filename):
    file_path=config.BASE_DIR+'/data/'+filename
    with open(file_path, "r", encoding="utf8") as f:
        data_json = json.load(f)
        list_data = []
        for i in data_json:
            list_data.append(tuple(i.values()))
        return list_data


if __name__ == '__main__':
    # ret = read_json('login.json')
    ret=read_json('add_emp.json')
    print(ret)
